﻿using System;
using Microsoft.EntityFrameworkCore;
using ORS.OrderRobot.Domain;

namespace ORS.OrderRobot.EFCore.Repository
{
	public class OrderRepository: EfCoreRepository<AccountOrder,int>,IOrderRepository
    {
		public OrderRepository(OrsDbContext dbContext):base(dbContext)
		{
		}
        protected override IQueryable<AccountOrder> IncludeDetails(IQueryable<AccountOrder> query)
        {
            query = query.Include(x => x.Account)
                        .Include(x => x.AccountBoarding);
            return base.IncludeDetails(query);
        }
    }
}

